package com.tanhua.domain.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

/**
 * @Author:chenda
 * @Date:2021/8/23 2:42
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@Document("tanhua_voice_publish")
public class VoicePublish implements Serializable {
    @Id
    private ObjectId id;

    @Indexed
    private Integer num;     //语音序号

    private String url;     //语音链接

    @Indexed
    private Integer userId;   //发布用户id

    private Long created;
}
